#pragma once
#include "FeatureExtractorBase.h"

class CColorPatchFeatExtractor :
	public CFeatureExtractorBase
{
public:
	CColorPatchFeatExtractor(void);
	virtual ~CColorPatchFeatExtractor(void);
	virtual TFeatureVector ExtractFeaturesFromImage( IplImage * img ); 
	virtual TDataSet ExtractFeaturesFromData( CDataPointManager * dpMgr, bool loadImages=true);
	virtual TFeatureVectorLabel GetLabels( void );
	void SetGridDim( int grid );
	int GetGridDim( void );

	protected:
	void CalculateStats( IplImage* img, double& variance, double& mean, double& skew);
	//TFeatureVector GetAllFeatures( TDataSet data, int feature );
	//void CalculateAverages( TDataSet data, TFeatureVector& means, TFeatureVector& stdDev ); 


	int m_GridSz;
};
